package com.jiazhong.spring.ioc.xml.生命周期;

import lombok.Data;

@Data
public class Person {

    private String name;

    static {
        System.out.println("Person类被加载了");
    }

    public Person() {
        System.out.println("Person类的对象产生了");
    }

    public void play() {
        System.out.println(name + "准备玩耍");
    }

    public void a(){
        System.out.println("对象被销毁了");
    }
    public void b(){
        System.out.println("对象被init了");
    }
}
